<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>显示</title>
    <style>
        p{
            /* 以内联的方式显示 */
            display: inline;

            background-color:red;
        }
    
    </style>

</head>
<body>
    <p>p块1</p>
    <p>p块2</p>
    
</body>
</html>